const path = require('path');
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: './',
  /* devServer: {
    proxy: {
      '/': {
        target: 'https://www.kuashou.com/',
        changeOrigin: true,
        ws: true
      }
    }
  }, */
  chainWebpack: config => {
    config.resolve.alias
      .set('src', resolve('src'))
      .set('less', resolve('src/assets/less'))
  },
  css: {
    loaderOptions: {
      css: {
        localIdentName: '[local]_[hash:base64:8]'
      }
    }
  }
}
